using System;
using System.Diagnostics;

namespace create_database
{
	public class ExceptionFormatter
	{
		private ExceptionFormatter ( )
		{
			// This is a function library...
		}

		public static string Format( System.Exception ex )
		{
			return ex.Message.Replace( "\n", "\n" + new string( ' ', ( Trace.IndentLevel + 1 ) * Trace.IndentSize ));
		}

		public static string Format( string s )
		{
			return s.Replace( "\n", "\n" + new string( ' ', ( Trace.IndentLevel + 1 ) * Trace.IndentSize ));
		}
	}
}
